
import java.util.Scanner;

public class Test39 {
    public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a= sc.nextInt();
int b= sc.nextInt();
Add add=new Add();int He=add.competer(a,b);
Sub sub=new Sub();int Cha=sub.competer(a,b);
System.out.println(He);
System.out.println(Cha);

    }
}
interface ICompute{
    public int competer(int n,int m);
}
class Add implements ICompute{
    public int competer(int n,int m){
        return  n+m;
    }
}
class Sub implements ICompute{
    public int competer(int n,int m){
        return n-m;
    }
}